home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / telecomm / sticpsrc.lzh / SOURCE.ARC / ATARI_IL.S < prev    next >
Text File  |  1990-03-23  |  456b  |  22 lines

  1. / interrupt-latency measurement routine
  2. /
  3.     .globl    lathandler_,latency_
  4. /
  5.     .shri
  6. /
  7. lathandler_:
  8.     movem.l ${d0,a0},-(sp)        / Save working registers
  9. /
  10.     moveq.l $0,d0
  11.     move.b    0xfffa1f,d0        / Read timer value
  12.     asl.w    $2,d0            / Index in LONG array
  13.     movea.l $latency_,a0
  14.     addq.l    $1,0(a0,d0)        / Inc the proper element
  15. /
  16.     movea.l $0xfffa0f,a0        / Location of ISR
  17.     bclr    $5,(a0)         / Clear the bit
  18. /
  19.     movem.l (sp)+,${d0,a0}        / Restore registers
  20.     rte
  21.  
  22.